#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
import os

def help():
	print '''
1. If your system don't have 'wget', please 'apt-get install wget' first.
>>> cnlstk.download.install('wget')	//apt-get install wget

2. Download all CBETA Corpus. 
>>> cnlstk.download.get('CBETA')	//download all CBETA Corpus (180Mb)

3. all CBETA Corpus on internet:
- http://waisp.lis.ntu.edu.tw/homepage/download/corpus/CBETA_v1998_xml/
- http://cbeta.org/
'''

def install(pkg):
	os.system('sudo apt-get update; sudo apt-get install %s' % pkg)
 
def get(opt):
	if opt == 'CBETA':
		os.system('cd; wget http://waisp.lis.ntu.edu.tw/homepage/download/corpus/CBETA_v1998_xml/xml-all.tar.bz2')
		os.system('cd; tar -jxvf xml-all.tar.bz2; rm xml-all.tar.bz2; mv xml Corpus-CBETA')
"""